package com.jmys.socket.core;

import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import org.springframework.web.servlet.ModelAndView;

@RequestMapping
@RestController
public class WebSocketController {

    @GetMapping("copy1")
    public ModelAndView copy1(){
        ModelAndView modelAndView = new ModelAndView();
        modelAndView.setViewName("copy1");
        return modelAndView;
    }

    @GetMapping("copy2")
    public ModelAndView copy2(){
        ModelAndView modelAndView = new ModelAndView();
        modelAndView.setViewName("copy2");
        return modelAndView;
    }
}
